package com.upnp.action;

import android.content.Context;

public class JniInterface {
	private Context  m_con;
	private EventOperate m_dEventOperate;
	
	public JniInterface(Context con){
		this.m_con = con;
	}
	
	public String GenEmailList(){
		String tagPath = null;
		m_dEventOperate = new EventOperate(0, this.m_con);
		if(m_dEventOperate != null){
			tagPath = m_dEventOperate.GetSubjectListFromCurAccount();
			m_dEventOperate = null;
		}
		return tagPath;
	}
	
	public String GenContactList(){
		String tagPath = null;
		m_dEventOperate = new EventOperate(2, this.m_con);
		if(m_dEventOperate != null){
			tagPath = m_dEventOperate.GetContactsFromEmail();
			m_dEventOperate = null;
		}
		return tagPath;
	}
	
	public String GenEmailDetails(String aName, String idList){
		String tagPath = null;
		m_dEventOperate = new EventOperate(1, this.m_con);
		if(m_dEventOperate != null){
			tagPath = m_dEventOperate.GetEmailDetailsFromSubList(aName, idList);
			m_dEventOperate = null;
		}
		return tagPath;
	}
}
